<html>
<base href="<?php echo base_url();?>">
<head>
<script type="text/javascript" src="<?php echo base_url();?>ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>ueditor/ueditor.all.min.js"></script>
<link rel="stylesheet" href="<?php echo base_url();?>themes/default/css/ueditor.css"/> 
</head> 	 		
<body>
<?php foreach($article as $v){ ?>
<form height=500px width="700px" action="<?php echo site_url('admin/updatearticle/'.$v['id']);?>" method="post">
     <input type="hidden" name="cid" value="<?php echo $v['cid'];?>"/><!--传一个cid参数区别是哪一个类别的文章-->
标题:<input type="text" size="50" value="<?php echo $v['title'];?>" name="title" ><br>
作者:<input type="text" size="50" value="<?php echo $v['author'];?>" name="author"><br>
时间:<input type="text" size="50" value="<?php echo $v['time'];?>" name="time"><span>(格式:yyyy-mm-dd)</span><br>

内容:<br>
<script style="height:530px;width:800px;" id="editor" type="text/plain" name="content" >

<?php
 echo  $v['content'];
}
?>
</script>
<br>
<input type="submit" name="submit" value="提交修改">
</form>
 </body>
<script type="text/javascript">
	var ue=UE.getEditor('editor');<!--和<script>里面的id保持一致 -->
 </script>

</html>